{** comments.tpl **}
{if $conf.conf_comments > 0 && ($smarty.get.id || $smarty.get.idp)}
{if !$key}{assign var=key value=0}{/if}
<div id="comments">
{if $comm}
  {section name=c loop=$comm} {if $smarty.section.c.iteration % 2 == 1} {assign var=col value='1'} {else} {assign var=col value='2'}{/if}
  <div id="comment-{$comm[c].com_id}" class="entry entry-{$col}">
    <div class="userinfo">{$comm[c].user_info}</div>
    <div class="commtext">{$comm[c].com_desc}</div>
    <div class="clr"></div>
  </div>
  {/section}
{/if}
<form id="addcomment" name="addcomment" method="post" action="sg-addcomment.php?key={$key}" onsubmit="addcoment('{$key}'); return false;">
  <div class="add-comment">
    <div class="form-pos"><div class="infoform">{t}Nie udostępniamy Twojego adresu email{/t}</div></div>
    <input type="hidden" name="id" id="id" value="{$id}" />
    <input type="hidden" name="comwhat" id="comwhat" value="{$comwhat}" />
    <div class="form-pos"><label for="name">{t}Podpis{/t}:</label><input type="text" name="name" id="name" /></div>
    <div class="form-pos"><label for="email">{t}E-mail{/t}:</label><input type="text" name="email" id="email" /></div>
    <div class="form-pos"><label for="www">{t}WWW{/t}:</label><input type="text" name="www" id="www" /></div>
    <div class="form-pos"><label for="text">{t}Treść{/t}:</label><textarea id="text" name="text" rows="5" cols="10"></textarea></div>
    <div class="form-pos"><input class="button" type="submit" value="{t}dodaj{/t}&raquo;" name="submit" /></div>
  </div>
</form>
</div>
{/if}